package com.rsk.dao.info;


import java.io.Serializable;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.rsk.entity.info.RskInfoReleaseRecord;



@Repository
public interface RskInfoReleaseRecordRepository extends JpaRepository<RskInfoReleaseRecord, Long>,JpaSpecificationExecutor<RskInfoReleaseRecord>,Serializable {
	
	@Modifying
	@Query(value = "update rsk_info_release_record set is_del = 1, operator_user =?1, operator_time = NOW() where is_del = 0 and information_id =?2", nativeQuery = true)
	public int delInfoReleaseRecordAll(Long operatorUser, Long informationId);
	
	
}
 